POV-Ray : Newsgroups : povray.binaries.images : My chess set : Re: My chess set Server Time
18 Aug 2024 16:21:00 EDT (-0400)
  Re: My chess set  
From: Ryan Constantine
Date: 7 May 2001 19:20:38
Message: <3AF72E9A.2209030E@yahoo.com>
to give your game the human touch, randomly position each piece within
its square and give it a random twist on its vertical axis.  in other
words, no human could place all of the pieces in the exact center of
each square and facing exactly forward.  nice job btw. :)

Warp wrote:
> 
>   A chess set is not as classic as the reflective sphere on a checkered
> plane, but it comes close. Thus I decided to make one myself.
>   I made it completely from the scratch, all by hand and pure CSG (I have
> played chess quite a lot and I know what the pieces look like, approximately
> at least).
> 
>   Making a chess set is actually quite fun. I recommend it to everyone
> who hasn't done one yet.
>   It's not too difficult (the horse is the piece that requires most work,
> as can see in my image as well).
>   The set forms a very nice hierarcy of objects. In my set the base of each
> piece is the same object; then I made colorless versions of each piece on
> the base object, and then white and black versions of each piece. Then I
> just copied the right number of pieces to the board.
>   It's also easy to make a little macro that positions a piece on the board
> given its coordinates. This way it's easy to actually "move" the pieces
> on the board, as in actual playing.
> 
>                 Name: chess.jpg
>    chess.jpg    Type: Postscript Document (application/postscript)
>             Encoding: x-uuencode
> 
> --
> #macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
> rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
> ],13),8)-3,10>#end blob{N(array[6]{11117333955,
> 7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.